<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-msgRecord-add">
			<input type="hidden" name="orderId" th:value="${orderId}">
			<input type="hidden" name="status" value="6">
			<div class="form-group">
				<label class="col-sm-3 control-label">退货理由：</label>
				<div class="col-sm-8">
					<textarea name="refundRemark" id="refundRemark" rows="6" class="form-control"></textarea>
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script th:inline="javascript">
		var prefix = ctx + "user/userOrder";
		$("#form-msgRecord-add").validate({
			rules:{
                refundRemark:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $("#refundRemark").val("买家："+$("#refundRemark").val());
	            $.operate.save(prefix + "/edit", $('#form-msgRecord-add').serialize());
	        }
	    }
	</script>
</body>
</html>
